package gui;

import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;

//		Deposit screen
public class Deposit extends JPanel {

	private JLabel lblCopyright;
	private JPanel panelNumPad;
	private JLabel label;
	private JButton button6;
	private JButton button4;
	private JButton button5;
	private JButton button9;
	private JButton button7;
	private JButton button8;
	private JButton button1;
	private JButton button2;
	private JButton button3;
	private JButton btnCancel;
	private JButton button0;
	private JButton buttonOK;
	private JButton btnTitle;
	private JButton btnDelete;
	private JButton btnComma;
	private JTextField txtAmount;

	public Deposit() {

		setBounds(0, 0, 624, 921);
		setBackground(new Color(135, 206, 235));
		setLayout(null);

		Icon logo = new ImageIcon(getClass().getResource(
				"LOGOHighassfuck2.0.png"));

		lblCopyright = new JLabel(
				"BCBS Systems, the \"Bitcoin\" logo, and all related systems are copyright Copenhagen Business School and its affiliates ");
		lblCopyright.setForeground(new Color(128, 128, 128));
		lblCopyright.setFont(new Font("Calibri Light", Font.PLAIN, 8));
		lblCopyright.setBounds(113, 1039, 458, 14);
		add(lblCopyright);

		panelNumPad = new JPanel();
		panelNumPad.setLayout(null);
		panelNumPad.setBackground(new Color(220, 220, 220));
		panelNumPad.setBounds(0, 427, 624, 493);
		add(panelNumPad);

		label = new JLabel(
				"BCBS Systems, the \"Bitcoin\" logo, and all related systems are copyright Copenhagen Business School and its affiliates ");
		label.setForeground(Color.GRAY);
		label.setFont(new Font("Calibri Light", Font.PLAIN, 8));
		label.setBounds(113, 1039, 458, 14);
		panelNumPad.add(label);

		button9 = new JButton("9");
		button9.setBounds(416, 198, 208, 99);
		panelNumPad.add(button9);
		button9.setForeground(Color.DARK_GRAY);
		button9.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button7 = new JButton("7");
		button7.setBounds(0, 198, 208, 99);
		panelNumPad.add(button7);
		button7.setForeground(Color.DARK_GRAY);
		button7.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button8 = new JButton("8");
		button8.setBounds(208, 198, 208, 99);
		panelNumPad.add(button8);
		button8.setForeground(Color.DARK_GRAY);
		button8.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button4 = new JButton("4");
		button4.setBounds(0, 99, 208, 99);
		panelNumPad.add(button4);
		button4.setForeground(Color.DARK_GRAY);
		button4.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button5 = new JButton("5");
		button5.setBounds(208, 99, 208, 99);
		panelNumPad.add(button5);
		button5.setForeground(Color.DARK_GRAY);
		button5.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button6 = new JButton("6");
		button6.setBounds(416, 99, 208, 99);
		panelNumPad.add(button6);
		button6.setForeground(Color.DARK_GRAY);
		button6.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button1 = new JButton("1");
		button1.setBounds(0, 0, 208, 99);
		panelNumPad.add(button1);
		button1.setForeground(Color.DARK_GRAY);
		button1.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button2 = new JButton("2");
		button2.setBounds(208, 0, 208, 99);
		panelNumPad.add(button2);
		button2.setForeground(Color.DARK_GRAY);
		button2.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button3 = new JButton("3");
		button3.setBounds(416, 0, 208, 99);
		panelNumPad.add(button3);
		button3.setForeground(Color.DARK_GRAY);
		button3.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		btnCancel = new JButton("Cancel");
		btnCancel.setBounds(0, 396, 312, 97);
		panelNumPad.add(btnCancel);
		btnCancel.setForeground(new Color(255, 0, 0));
		btnCancel.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button0 = new JButton("0");
		button0.setBounds(208, 297, 208, 99);
		panelNumPad.add(button0);
		button0.setForeground(Color.DARK_GRAY);
		button0.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		buttonOK = new JButton("OK");
		buttonOK.setBounds(311, 396, 312, 97);
		panelNumPad.add(buttonOK);
		buttonOK.setForeground(new Color(0, 128, 0));
		buttonOK.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		btnDelete = new JButton("<= Del");
		btnDelete.setForeground(Color.DARK_GRAY);
		btnDelete.setFont(new Font("Calibri Light", Font.PLAIN, 30));
		btnDelete.setBounds(0, 297, 208, 99);
		panelNumPad.add(btnDelete);

		btnComma = new JButton(",");
		btnComma.setForeground(Color.DARK_GRAY);
		btnComma.setFont(new Font("Calibri Light", Font.PLAIN, 35));
		btnComma.setBounds(416, 297, 208, 99);
		panelNumPad.add(btnComma);

		btnTitle = new JButton("Bitcoin transaction");
		btnTitle.setBackground(Color.LIGHT_GRAY);
		btnTitle.setEnabled(false);
		btnTitle.setForeground(new Color(0, 0, 0));
		btnTitle.setFont(new Font("Calibri Light", Font.BOLD, 35));
		btnTitle.setBounds(0, 0, 624, 51);
		add(btnTitle);

		txtAmount = new JTextField();
		txtAmount.setForeground(Color.DARK_GRAY);
		txtAmount.setFont(new Font("Calibri Light", Font.BOLD, 70));
		txtAmount.setHorizontalAlignment(SwingConstants.CENTER);
		txtAmount.setEditable(false);
		txtAmount.setColumns(1);
		txtAmount.setBounds(0, 50, 624, 378);
		add(txtAmount);

	}

	public JButton get0() {
		return button0;
	}

	public JButton get1() {
		return button1;
	}

	public JButton get2() {
		return button2;
	}

	public JButton get3() {
		return button3;
	}

	public JButton get4() {
		return button4;
	}

	public JButton get5() {
		return button5;
	}

	public JButton get6() {
		return button6;
	}

	public JButton get7() {
		return button7;
	}

	public JButton get8() {
		return button8;
	}

	public JButton get9() {
		return button9;
	}

	public JButton getCancel() {
		return btnCancel;
	}

	public JButton getOK() {
		return buttonOK;
	}

	public JButton getComma() {
		return btnComma;
	}

	public JButton getDel() {
		return btnDelete;
	}

	public JTextField getAmount() {
		return txtAmount;
	}

	public void addActionListener(ActionListener squirtle) {
		button0.addActionListener(squirtle);
		button1.addActionListener(squirtle);
		button2.addActionListener(squirtle);
		button3.addActionListener(squirtle);
		button4.addActionListener(squirtle);
		button5.addActionListener(squirtle);
		button6.addActionListener(squirtle);
		button7.addActionListener(squirtle);
		button8.addActionListener(squirtle);
		button9.addActionListener(squirtle);
		buttonOK.addActionListener(squirtle);
		btnCancel.addActionListener(squirtle);
		btnComma.addActionListener(squirtle);
		btnDelete.addActionListener(squirtle);
	}

}
